XML Schema Validator is a tool used to validate configuration files in XML format against XML Schemas to make sure the
Websphere configuration XML files are compliant to their schema definitions. This tool is recommended to be run to
validate any Websphere configuration XML files change you manually made, such as server.xml.


** Environment Setup **

Before running XMLSchemaValidator, the Java JVM must be in your search path, and j2ee.jar and xerces.jar from Websphere
distribution must be included in your CLASSPATH environment. For example,

CLASSPATH=.;..\..\..\lib\j2ee.jar;..\..\..\lib\xerces.jar


** Usage **

1) Make sure information in validationconfig.xml is correct.

validatorconfig.xml is the configuration file that tells what XML files you are validating and what XML schemas are needed
for validation. You need to update this file to point to your XML and schema files.

Your Websphere configuration XML files are located at <websphere>\config directory.
Your XML schema files are located at <websphere>\properties\schemas directory.

What schema files should be included in validatorconfig.xml for validation depends on the configuration XML files.
In the configuration XML file, the root element, <xmi:XMI>, contains namespace declaration like
xmlns:<prefix>='<namespace identifier>'. The last part of <namespace identifier> has the name of
<schema name prefix>.xmi. Replace the suffix "xmi" with "xsd". You will find that schema file in
the schema directory.

2) Now, you can run the following command for XML Schemas validation.

java XMLSchemaValidator validatorconfig.xml